﻿<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title></title>
</head>
<body>
    <script>
        /*
         字符串：引号
         1.特殊字符 用转义符
         2.length 获取字符串的长度（有多少个字符）
         3.+可以进行字符串的拼接
         4.字符串拼接其他数据后还是字符串
         5.字符串和变量拼接：引引加加
         */

        let address ='郑\'州\n河南';
        console.log(address);

        let hero = '白';
        console.log('hero的长度是:' + hero.length);

        let subject = 'h5'; 
        let subject1 = 'js';
        let result = 'h5' + 'js';
        console.log(result, subject + subject1);

        let star = '智乃';
        star = star + 28;
        console.log(typeof star);

        let dota = '刀塔';
        console.log('王者荣耀' + dota + '吃鸡');


    </script>
</body>
</html>